<div class="row searchLineWrap">
	<form class="form-horizontal" method="post"
		action="${cxt!}/admin/payment" id="searchForm">
		<div class="col-md-12">
			<div class="row">
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["payment.orderno"]}</label>
						<div class="col-md-9">
								<input type="text" class="form-control" name="payment.l_orderno"
									placeholder="${_res['payment.orderno']}"
									value="${paramMap['payment.l_orderno']}" />
						</div>
					</div>
				</div>

				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["system.startdate"]}</label>
						<div class="col-md-9">
								<input type="text" class="laydate-icon form-control layer-date"
									onclick="laydate()" name="payment.gt_createtime"
									placeholder="${_res['system.startdate']}"
									value="${paramMap['payment.gt_createtime']}" />
						</div>
					</div>
				</div>
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["system.enddate"]}</label>
						<div class="col-md-9">
								<input type="text" class="laydate-icon form-control layer-date"
									onclick="laydate()" name="payment.le_createtime"
									placeholder="${_res['system.enddate']}"
									value="${paramMap['payment.le_createtime']}" />
						</div>
					</div>
				</div>

			</div>
			
			

			<div class="row">
				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["payment.paymentchannel"]}</label>
						<div class="col-md-9">
								<#dict type="select" class="form-control"
								name="payment.f_paymentchannel" dictCode="PAYMENT_CHANNEL"
								defaultValue="${paramMap['payment.f_paymentchannel']}"/><br>
						</div>
					</div>
				</div>

				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["payment.paymentType"]}</label>
						<div class="col-md-9">
								<#dict type="select" class="form-control"
								name="payment.f_paymenttype" dictCode="PAYMENT_TYPE"
								defaultValue="${paramMap['payment.f_paymenttype']}"/><br>
						</div>
					</div>
				</div>

				<div class="col-md-4">
					<div class="form-group">
						<label class="col-md-3 control-label">${_res["payment.status"]}</label>
						<div class="col-md-9">
								<#dict type="select" class="form-control"
								name="payment.f_status" dictCode="PAYMENT_STATUS"
								defaultValue="${paramMap['payment.f_status']}"/><br>
						</div>
					</div>
				</div>

				
			</div>
			
			<div class="row">
			    <div class="col-md-8"></div>
				<div class="col-md-3">
					<div class="form-group">
						<% if(hasPrivilegeUrl("PAYMENT_SEARCH")){ %>
						<button type="button" class="btn btn-primary pull-right"
							onclick="ajaxForm('content','searchForm')">
							<i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}
						</button>
						<% } %>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>

<div class="row searchLineWrap">
						
	<% if(hasPrivilegeUrl("/admin/payment/export")){ %>
		<p><a href="javascript:void(0);"  class="btn btn-primary pull-left">${_res["system.export"]}</a><div class="clearfix"></div></p>
	<% } %>
	<!-- <p><a href="${cxt!}/pay/paypal/checkOut" target="blank" class="btn btn-primary pull-left">pay</a><div class="clearfix"></div></p> -->
	<table class="table table-bordered">
		<thead>
			<tr>
				<th>${_res["payment.orderno"]}</th>
				<th>${_res["payment.orderamount"]}</th>
				<th>${_res["payment.userName"]}</th>
				<th>${_res["payment.paymentType"]}</th>
				<th>${_res["payment.paymentchannel"]}</th>
				<th>${_res["payment.status"]}</th>
				<!-- <th>${_res["system.memo"]}</th> -->
				<th>${_res["system.operatortime"]}</th>
			</tr>
		</thead>
		<tbody>
			<%for (payment in paymentList!){%>
			<tr class="gradeC">
				<td>${payment.orderno!}</td>
				<td>${payment.amount!}</td>
				<td><#cust customerId="${payment.payer!}"/></td>
				<td><#dict type="lable" value="${payment.paymentType!}"
					dictCode="PAYMENT_TYPE" /></td>
				<td><#dict type="lable" value="${payment.paymentchannel!}"
					dictCode="PAYMENT_CHANNEL" /></td>
				<td><#dict type="lable" value="${payment.status!}"
					dictCode="PAYMENT_STATUS" /></td>
				<!-- <td>${payment.memo!}</td> -->
				<td>${payment.createtime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
			</tr>
			<%}%>
		</tbody>
	</table>
	<div id="splitPageDiv"><#page formId="searchForm" /></div>
	<#nav />
</div>

<script>
 function downloaddetail(){
	var url = "/admin/payment/export";
	var data = "filename=payment";
	ajaxDownload(url,"searchForm",data);
	return true;
  };
</script>